package com.lh.controller;

import com.alibaba.fastjson.JSONObject;
import com.lh.entity.table.EnterpriseData;
import com.lh.service.EnterpriseDataService;
import com.lh.service.EnterpriseDataService;
import com.lh.utils.Answer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/enterpriseData")
public class EnterpriseDataController {

    @Autowired
    private EnterpriseDataService enterpriseDataService;


    @RequestMapping("/addEnterpriseData")
    public Answer<Object> addEnterpriseData(@RequestBody EnterpriseData EnterpriseData) {
        return enterpriseDataService.addEnterpriseData(EnterpriseData);
    }

    @RequestMapping("/updateEnterpriseData")
    public Answer<Object> updateEnterpriseData(@RequestBody EnterpriseData EnterpriseData) {
        return enterpriseDataService.updateEnterpriseData(EnterpriseData);
    }

    @RequestMapping("/deleteEnterpriseData")
    public Answer<Object> deleteEnterpriseData(@RequestBody EnterpriseData EnterpriseData) {
        return enterpriseDataService.deleteEnterpriseData(EnterpriseData);
    }

    @RequestMapping("/queryEnterpriseDataList")
    public Answer<Object> queryEnterpriseDataList(@RequestBody EnterpriseData EnterpriseData) {
        return enterpriseDataService.queryEnterpriseDataList(EnterpriseData);
    }

    /**
     *统计分析-高质量发展下-----服务企业下--重点工业企业包保服务查询接口
     */
    @RequestMapping("/queryEnterpriseDataPage")
    public Answer<Object> queryEnterpriseDataPage(@RequestBody JSONObject reqJson) {
        return enterpriseDataService.queryEnterpriseDataPage(reqJson);
    }

    @RequestMapping("/personResponsibleList")
    public Answer<Object> personResponsibleList() {
        return enterpriseDataService.personResponsibleList();
    }

    @RequestMapping("/departmentName")
    public Answer<Object> departmentName() {
        return enterpriseDataService.departmentName();
    }
}
